package com.kk.quyan.dao;

import com.kk.quyan.entity.Material;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * <p>
 * 素材表 Mapper 接口
 * </p>
 *
 * @author kk
 * @since 2020-11-21
 */
public interface MaterialMapper extends BaseMapper<Material> {

    //统计该标签下的素材数量
    int countMaterialByLabelId(int labelId);

    //分页获取素材
    List<Material> selectMaterialByLabelId(@Param("labelId") int labelId,
                                           @Param("startNum") int startNum,@Param("limit") int limit);
}
